import { toRefs, reactive, computed } from 'vue';
import { useStore } from 'vuex'
function CityHook() {
    const store = useStore()
    const state = reactive({
        toCity() {
            this.$router.push(`/city`)
        },
        city: computed(() => {
            return store.state.cityHooks.city
        }),
    })
    

    const refState = toRefs(state);
    return refState
}
export default CityHook